import request from '@/utils/request' //引入已经封装好的axios 和 拦截器

export default{
    //查询课程列表数据
    getConditionPage(page,limit,courseFront){
        return request({
            url: 'http://localhost:8001/eduservice/courseFront/getConditionPage/'+page+'/'+limit,
            method: 'post',
            data:courseFront
        })
    },
    //课程分类列表
    getAllSubject(){
        return request({
            url: `http://localhost:8001/eduservice/Subject/findAll`,
            method: 'get',
        })
    },
    //根据课程id，查询课程详细信息
    getFrontCourseInfo(courseId){
        return request({
            url: `http://localhost:8001/eduservice/courseFront/getFrontCourseInfo/${courseId}`,
            method: 'get'
        })
    }

}